From: Florian Müllner Date: Fri, 21 Feb 2014 09:38:29 +0000 (+0100) Subject: workspaceThumbnails: Fix creating new workspace via DND X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2718 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=89a2dc71fc1ed;p=gnome-shell.git workspaceThumbnails: Fix creating new workspace via DND Commit 61a58ff3c981d4 replaced the (removed in commit 254afc50223a7) MetaWindowActor.get_workspace() method by MetaWindow.get_workspace(), but did not take into account that the return values differ - the former returns the workspace index, the latter the workspace object. https://bugzilla.gnome.org/show_bug.cgi?id=724686 --- diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index 7b7bc908e..913ed2329 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -822,7 +822,7 @@ const ThumbnailsBox = new Lang.Class({ // ... move them down one. windows.forEach(function(winActor) { let window = winActor.meta_window; - window.change_workspace_by_index(window.get_workspace() + 1, true); + window.change_workspace_by_index(window.get_workspace().index() + 1, true); }); if (isWindow)